Package com.cisco.pt.PopupMenuItem.impl
Class PopupMenuItemImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.PopupMenuItem.impl.PopupMenuItemImpl
- All Implemented Interfaces:
IPCObject,PopupMenuItem
Information provided by the PKI file:
\class MenuItem
\brief MenuItem is an item in the Menu object.
\example appWindow().getMenuBar().getFilePopupMenu().getMenuItemByName("Save")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionPopupMenuItemImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Information provided by the PKI file:getUuid()Information provided by the PKI file:voidInformation provided by the PKI file:voidsetEnabled(boolean bEnabled) Information provided by the PKI file:voidsetVisible(boolean bVisible) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
PopupMenuItemImpl
public PopupMenuItemImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getUuid
Information provided by the PKI file:
\brief Returns the UUID of this menu item. \return uuid, the UUID of this menu item.- Specified by:
getUuidin interfacePopupMenuItem- Returns:
- UUID Returns a UUID
-
removeItem
public void removeItem()Information provided by the PKI file:
\brief Removes this menu item from the parent menu.- Specified by:
removeItemin interfacePopupMenuItem
-
getLabel
Information provided by the PKI file:
\brief Returns the label for this menu item. \return QString, the label for this menu item.- Specified by:
getLabelin interfacePopupMenuItem- Returns:
- String Returns a String
-
setEnabled
public void setEnabled(boolean bEnabled) Information provided by the PKI file:
\brief Enables or disables this menu item. \param bEnabled, true to enable this menu item, false to disable it.- Specified by:
setEnabledin interfacePopupMenuItem- Parameters:
bEnabled- Takes in a parameter of bEnabled
-
setVisible
public void setVisible(boolean bVisible) Information provided by the PKI file:
\brief Shows or hides this menu item. \param bVisible, true to show this menu item, false to hide it.- Specified by:
setVisiblein interfacePopupMenuItem- Parameters:
bVisible- Takes in a parameter of bVisible
-